package com.nyc;

import com.nyc.anno.SpringBootApplication;
import com.nyc.boot.SpringApplication;
import com.nyc.myreloadclass.MyMySQL;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author 26917
 *
 * 模拟springboot启动类
 */
@SpringBootApplication(exclude = {MyMySQL.class},excludeName = {"com.nyc.myreloadclass.MyRedis"})
public class SpringAppDemo {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringAppDemo.class);
        String[] beanDefinitionNames = run.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(beanDefinitionName);
        }
    }
}